package com.example.zk1.contract;

import com.example.mvp.model.IModel;
import com.example.mvp.presenter.IPresenter;
import com.example.mvp.view.IView;

import java.util.HashMap;

import io.reactivex.Observable;

public interface LoginContract {

    interface AppView extends IView {
        String getUsername();
        String getpwd();
        String getEmail();
        void goMain();

    }

    interface RegisterView extends IView {
        String getApikey();
        String getUsername();
        String getpwd();
        void goMain();
    }
    interface LoginView extends IView {
        String getApikey();
        String getUsername();
        String getpwd();
        void goMain();
    }



    interface LoginModel extends IModel {
        //Apikey
        Observable appMed(HashMap<String,String>map);

        Observable regMed(HashMap<String,String>map);

        Observable logMed(HashMap<String,String>map);


    }



    interface LoginPresenter extends IPresenter {

        //apikey
        void requestApp();

        void requestRegister();

        void requestLogin();



    }
}
